package org.mall.modules.cash.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mall.modules.cash.entity.CashTransaction;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 提现交易记录表
 * @Author: jeecg-boot
 * @Date:   2019-12-31
 * @Version: V1.0
 */
@Mapper
public interface CashTransactionMapper extends BaseMapper<CashTransaction> {

    @Select("select * from  cash_transaction  where cash_id = #{cashId} ")
    CashTransaction selectByCashId(@Param("cashId") Long cashInfoLogId);
    @Select("select * from  cash_transaction  where cash_id = #{cashId} and status = #{status} ")
    CashTransaction selectByCashIdAndStatus(@Param("cashId") Long cashInfoLogId,@Param("status") Integer status);
}
